feat: implement multi-line paste functionality with reference storage#37
feat: implement multi-line paste functionality with reference storage#37
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new paste storage system introduces reference markers for multi-line clipboard content (3+ lines), storing full text internally while displaying compact references. This is integrated into the TUI layer alongside dynamic textarea height adjustment based on terminal dimensions. Changes
Sequence DiagramsequenceDiagram
participant User
participant TUI
participant PasteStore as Paste Store
participant Display
User->>TUI: Paste content (3+ lines)
TUI->>PasteStore: StoreAndFormat(content)
PasteStore->>PasteStore: Store content with ID
PasteStore-->>TUI: Return reference marker
TUI->>Display: Display reference
User->>TUI: Submit prompt with reference
TUI->>PasteStore: ExpandRefs(input)
PasteStore-->>TUI: Return expanded content
TUI->>Display: Process full content
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Improvements